﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="wfrmPreLegajoJudicialListar.aspx.cs" Inherits="PresentationLayer.WebForm1" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../../Scripts/JS_master_page.js" type="text/javascript"></script>
    <style type="text/css">
        .style2
        {
            width: 102px;
        }
        .style3
        {
            width: 104px;
        }
        .style4
        {
            width: 103px;
        }
        .style5
        {
        }
        .style6
        {
            height: 34px;
        }
        .style8
        {
            width: 34px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
        CssPostfix="BlackGlass" GroupBoxCaptionOffsetY="-22px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
        Width="701px" HeaderText="Pre Legajo Judicial " Height="312px">
        <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <HeaderStyle Height="23px">
            <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
            <asp:UpdatePanel ID="s" runat="server">
            <ContentTemplate>
            
                <table style="width: 100%;">
                    <tr>
                        <td colspan="3">
                            <div style="width: 444px">
                                <table style="width: 41%;">
                                    <tr>
                                        <td class="style2">
                                            <dx:ASPxButton ID="btnNuevo" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                Text="Nuevo" OnClick="btnNuevo_Click">
                                            </dx:ASPxButton>
                                        </td>
                                        <td class="style3">
                                            <dx:ASPxButton ID="btnModificar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                Text="Modificar" OnClick="btnModificar_Click">
                                            </dx:ASPxButton>
                                        </td>
                                        <td class="style4">
                                            <dx:ASPxButton ID="btnEliminar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                Text="Anular" OnClick="btnEliminar_Click">
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <dx:ASPxButton ID="btnSalir" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                Text="Salir" Height="22px" Width="66px" OnClick="btnSalir_Click">
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <div>
                                <dx:ASPxGridView ID="dgvPreLegajos" runat="server" AutoGenerateColumns="False" Width="100%"
                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                    KeyFieldName="NU_Prelegajo" OnPageIndexChanged="dgvPreLegajos_PageIndexChanged"
                                    OnAfterPerformCallback="dgvPreLegajos_AfterPerformCallback" 
                                    OnHeaderFilterFillItems="dgvPreLegajos_HeaderFilterFillItems">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="N° Prelegajo" FieldName="NU_Prelegajo" ShowInCustomizationForm="True"
                                            VisibleIndex="0">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="N° Informe" FieldName="NU_informe" ShowInCustomizationForm="True"
                                            VisibleIndex="5">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataDateColumn Caption="Fecha de Recepción" FieldName="FE_recepcion"
                                            ShowInCustomizationForm="True" UnboundType="DateTime" VisibleIndex="1" 
                                            Width="100px">
                                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                            </PropertiesDateEdit>
                                        </dx:GridViewDataDateColumn>
                                        <dx:GridViewDataTextColumn Caption="N° de Entrega de Memo" FieldName="NU_memo" ShowInCustomizationForm="True"
                                            VisibleIndex="2">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Tipo de Proceso" FieldName="VR_tipoproceso" ShowInCustomizationForm="True"
                                            VisibleIndex="3">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Estado" FieldName="VR_estado" ShowInCustomizationForm="True"
                                            VisibleIndex="12">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Origen de Informe"
                                            VisibleIndex="4" FieldName="tx_OrigenInforme">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Fecha del Informe"
                                            VisibleIndex="6" FieldName="FE_Informe">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Abogado" FieldName="VR_nombrepersona"
                                            VisibleIndex="10">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowFocusedRow="True" />
                                    <SettingsPager PageSize="5">
                                    </SettingsPager>
                                    <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                                    <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                                    <Settings ShowFilterRow="True"></Settings>
                                    <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                        <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                        </LoadingPanelOnStatusBar>
                                        <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </Images>
                                    <ImagesFilterControl>
                                        <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                        </LoadingPanel>
                                    </ImagesFilterControl>
                                    <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass">
                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                        </Header>
                                    </Styles>
                                    <StylesEditors>
                                        <CalendarHeader Spacing="1px">
                                        </CalendarHeader>
                                        <ProgressBar Height="25px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dx:ASPxGridView>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="pcMensaje" runat="server" ClientInstanceName="pcMensaje"
                                CloseAction="None" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                HeaderText="Mensaje" Height="95px" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" ShowCloseButton="False" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                Width="331px">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <table style="width: 100%;">
                                            <tr>
                                                <td align="center" class="style5" colspan="3">
                                                    <dx:ASPxLabel ID="lblMensaje" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style5">
                                                </td>
                                                <td align="center">
                                                    &nbsp;<dx:ASPxButton ID="btnAceptar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Aceptar" OnClick="btnAceptar_Click1">
                                                        <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="pcPregunta" runat="server" ClientInstanceName="pcPregunta"
                                CloseAction="None" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                HeaderText="Pregunta" Height="95px" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" ShowCloseButton="False" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                Width="330px">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <table style="width: 100%;">
                                            <tr>
                                                <td align="center" class="style6" colspan="4">
                                                    <dx:ASPxLabel ID="lblPregunta" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style8">
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnAceptar1" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" OnClick="btnAceptar1_Click" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Aceptar" Style="margin-left: 0px">
                                                        <ClientSideEvents Click="function(s, e) {
	pcPregunta.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnCancelar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Cancelar">
                                                        <ClientSideEvents Click="function(s, e) {
	pcPregunta.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
</ContentTemplate>
            </asp:UpdatePanel>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
